Write an APP every day _ 1st days-simple music player and app music playerWrite an APP every day.1Day 1. Write a music player
-- Today, I wrote a "MusicPlayer" APP, which is a music player
Improved the music player 2.0 and the music player 2.0
Compared with the music player 1.0, the 2.0 version has made the following improvements:
Extract the Retrieved Data
Added Music i
Android music player development SweetMusicPlayer intelligently matches local lyrics, android player
In the previous article, I used MediaPlayer to play music. Well, use that image.
I. Match the lyrics from the memory card
Will match from the following path
1) SweetMusicPlayer/Lyrics/
2) under the same category of song
;Baseline: The bottom of the control Panel is aligned with the baseline of the text;Texttop: The top of the control Panel is aligned to the top of the highest text in the current line;Middle: The middle of the control Panel aligns with the baseline of the current line;Absmiddle: The middle of the control Panel aligns with the middle of the current text or object;Absbottom: The bottom of the control Panel is aligned with the bottom of the text.Example: ********************************************
an activity publishes a broadcast and requests the service to publish an update progress broadcast, it needs to wake up the thread and let it start working.
4) when the service method is to exit destruction, it needs to wake up the thread and let it exit the loop.
Complete project code:
Http://download.csdn.net/detail/tzguo1314/5542427
Some code:
All code of the main activity
Package com.tar ENA. day1901; import com.tar ENA. entity. music; import c
object is not available .. Eventually, the background is converted into an imageview ~ Let's talk about this imaginview .. I like it very much ~ The imagebutton button is used for playing at the beginning, but the layout_width attribute is used to adjust the size of the button, and the figure is the original size .. Great! Are not complete .. Then I changed it to imageview .. However, there is no orange feedback ..So I still want to know how to adjust the image size in imagebutton .. (QuesionTi
Android-music player
1. What is Open Core?
Open CoreIt is the core of the Android multimedia framework. It is used for audio, video usage, playback, and other operations on all Android platforms.
2. Specific functions of Open Core
1. multimedia file playback, download, including: 3GPP, MPEG-4, AAC and MP3 containers.
2. Download and play streaming media files in real time, including 3GPP, HTTP, and RTSP
cascading style sheet (CSS), but unlike CSS, the QT style sheet is applied to the world of widgets.6.3 Special Effects formForms that can implement special effects such as irregular forms, transparent forms, and so on, can make the application look more personal and appealing.Reprint please indicate the source: Muni column http://blog.csdn.net/u012027907Vii. Examples of music players7.1 Functional Requirem
Service-based music player for Android Development
This is a Service-based music player. The program's music will be played by the background Service component. When the background playing status changes, the program sends a broadcast notification to the foreground Activity
First, adjust the structure of the project, import the necessary materialThe restructured project structure is as follows:
Two, new two controller(1) Create a new controller to display the music file list interface, which inherits from Uitableviewcontroller
(2) Create a new controller to display the playback interface, which inherits from Uiviewcontroller
(3) in storyboard, remove the previous controller, replace it with a navigation controll
musicService for playing music
3. All right, use it in the project:When using PlayMusicActivity, you only need to use an intent to upload the corresponding data and start PlayMusicActivity.First, put your data in an array. Musicean is a music entity class. You can see its attributes in the downloaded source code and save music information. For examplePrivate Arr
This article introduces the MediaPlayer local music player. When the application is no longer on the frontend and is not using it, we need to establish a Service to ensure that the audio continues to play.
Interaction between Activity and Service binding is the focus of this article (here we need to note that Activity cannot directly access methods in Service objects, so we have introduced it here, this is
This article describes an online music player. The operations are described in detail to achieve the effect and understand the principles of the player.
Source code:
Layout file:
Activity_audio_httpplayer:
AudioHTTPPLayer. java:
Package com. multimediademo7audiohttpplayer; import android. app. activity; import android.
to use a intent, the corresponding data into, start playmusicactivity canFirst put your data in the array, Musicean is a music entity class, in the downloaded source code can see its related properties, some of the information stored music. Like underneath.private arraylistpublic void PlayMusic1 (view view) {//Click a button to play the videoIntent Intent = new Intent ();Intent.setclass (this, playmusicact
HTML5 ring music playerThrough HTML5, music is emerging on the Internet. Adding an audio file is as simple as inserting an image, and you can play music outside the browser to achieve an amazing music experience. With the advent of HTML5, some major changes have taken place, especially in
: Set whether to "resdtags"
G: Search for songs
J: adjust the order of the songs in the right playlist
L: Disable/enable the playback list.
I: Enter the specified directory to enter the folder
O: url
T built-in topic browsing Switch
Alt + shift + right arrow key: Clear the playback list
In addition, MOC also has a considerate design, that is, when you need to perform other operations on the console, you can press the q key to switch back to the console interface, without worrying about
I. Description
MetroPlayer3.0 is a software product that is reconstructed and improved on the basis of MetroMusic1.05 and version 2.0. Since 3.0, the software has been officially renamed Metroplayer. Metroplayer pay attention to a good user experience, and strive to create suitable for the minority music enthusiasts like music player, Metroplayer advocated concis
Android Learning Organization _ Service simple application. Music player
1. Because we need to use Service, we need to define it in the AndroidManifest. xml file.
2. Then, put the music to be played in the res/raw folder.3.// Music. java FilePackage com. edgar. playservice;
Import com. edgar. playservice. R;Import com
This is a service-based music player. The program's music will be played by the background service component. When the background playing status changes, the program sends a broadcast notification to the foreground activity update interface. When you click the foreground activity interface button or drag the progress bar, the system sends a broadcast notification
mediaplayer (); button = (button) V; try {Switch (v. GETID () {// playback case R. id. btnplay: If (! Mediaplayer. isplaying () {play ();} break; // pause case R. id. btnpause: // if the video is being played, press the button to pause. and the text on the button is displayed as "Pause continue); // set the button text} else {// if it is paused, press the button to continue playing // play ();} break; // stop case R. id. btnstop: If (mediaplayer. isplaying () {mediaplayer. stop ();} break; // r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.